import api from '../utils/api';

export async function queryAssetType() {
  return api.post('/basic/assetType/queryAllList');
}

export async function queryAssetTypeRoot() {
  return api.post('/basic/assetType/queryAssetType');
}

export async function queryAssetTypeByPid(param) {
  return api.post('/basic/assetType/queryAssetTypeByPid', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/basic/assetType/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/basic/assetType/remove', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  return api.post('/basic/assetType/edit', {
    data: JSON.stringify(param),
  });
}


